﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace PHMEE.Entities.DaqInfo.TdDevices
{
    /// <summary>
    /// 设备属性实体（用于定义每个设备类型的属性）
    /// </summary>
    public class TdDeviceAttribute : Entity<Guid>
    {
        /// <summary>
        /// 属性英文，例如经度（longitude）、纬度（latitude）等用作超级表的列
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 属性名称，例如经度、纬度、轴速等
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// TDengine中的列类型,最好改为枚举，例如（TimeStamp，Float，Int）
        /// </summary>
        public string ColumnType { get; set; }
        /// <summary>
        /// 设备类型外键
        /// </summary>
        public Guid TdDeviceTypeId { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public int? SortOrder { get; set; }
        /// <summary>
        /// 所属设备类型
        /// </summary>
        public TdDeviceType TdDeviceType { get; set; }

        public TdDeviceAttribute(Guid id)
        {
            Id = id;
        }
        public TdDeviceAttribute() { }
    }
}
